package com.fs.ssm004.pojo;

import java.util.Set;

public class Teacher {
    private  int teacherId;
    private  String name;
    private int sex;
    private String teacherName;//设置唯一键
    private String password;
    private int roleNum;
    private int deleted;

    private Role role;//对应表的角色

    public int getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(int teacherId) {
        this.teacherId = teacherId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public String getTeacherName() {
        return teacherName;
    }

    public void setTeacherName(String teacherName) {
        this.teacherName = teacherName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getRoleNum() {
        return roleNum;
    }

    public void setRoleNum(int roleNum) {
        this.roleNum = roleNum;
    }

    public int getDeleted() {
        return deleted;
    }

    public void setDeleted(int deleted) {
        this.deleted = deleted;
    }

    public Role getRole() {
        return role;
    }

    public void setRole(Role role) {
        this.role = role;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "teacherId=" + teacherId +
                ", name='" + name + '\'' +
                ", sex=" + sex +
                ", teacherName='" + teacherName + '\'' +
                ", password='" + password + '\'' +
                ", roleNum=" + roleNum +
                ", deleted=" + deleted +
                ", role=" + role +
                '}';
    }
}
